package com.example.wxserver;

import org.springframework.web.bind.annotation.*;

@RestController    // 控制器类的注解
@CrossOrigin
@RequestMapping("/test") // 请求映射的注解
public class TestController {
    @RequestMapping("/hello")
    @ResponseBody
    public Result hello(@RequestParam String msg){
        return  new Result(200,"成功",null);
    }
}
